package com.app.model;


import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_person_family")
@JsonInclude(JsonInclude.Include.NON_NULL)

public class PersonFamilyModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer personId;//人员ID 对应person表
    private Integer appellation;//称谓ID,category表
    @ExcelProperty("姓名")
    private String memberName;//成员名称
    @ExcelProperty("出生日期")
    private String birthday;// 成员生日
    private Integer zzmm;//政治面貌ID,category表
    @ExcelProperty("联系电话")
    private String phone;//联系电话
    @ExcelProperty("工作单位")
    private String unit;//工作单位以及职务
    private Timestamp createTime;
    private Timestamp updateTime;

    @TableField(exist = false)
    @ExcelProperty("政治面貌")
    private String zzmmText;//
    @TableField(exist = false)
    @ExcelProperty("称谓")
    private String appellationText;//
}
